<?php
/**
 * Created by PhpStorm.
 * User: huyang
 * Date: 16/10/29
 * Time: 下午8:01
 */

namespace App\Http\Repositories\Services;


interface IMessage
{
    /**
     * 发送短信
     * @param        $mobile
     * @param        $content
     * @param string $code
     * @return mixed
     */
    public function send($mobile, $content, $code = '');

    /**
     * 验证短信验证码是否正确
     * @param $mobile
     * @param $code
     * @return mixed
     */
    public function validate($mobile, $code);
}

